<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@include file="/trunk/js/header.jsp"%>
<html>
<head>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
    <title>Title</title>
    <script src="${ctx}/trunk/js/boot.js" type="text/javascript"></script>
    <style type="text/css">
        body {
            width: 284px;
            height: 168px;
            overflow: hidden;
            margin: 0;
            font-family: 思源黑体;
        }
        .content {
            width:calc(100% - 50px);
            height:134px;
            margin-left: 25px;
        }
        .content>img {
            float:left;
            width:58px;
            height: 58px;
            margin: 38px 12px 38px 0;
        }
        .content>div {
            float:left;
            width:calc(100% - 70px);
            height: 120px;
            line-height: 30px;
            margin: 7px 0 7px 0;
            display: flex;
            align-items:Center;
            font-size: 14px;
        }
        .but-div {
            width:100%;
            height:35px;
            background: #f9f9f9;
            border-top: 1px solid #e0e0e0;
        }
        .but-div>div {
            float: right;
            margin: 4px 10px 4px 0;
            height: 26px;
            line-height: 26px;
            text-align: center;
            padding: 0 8px 0 8px;
            background: #3297ec;
            border-radius: 4px;
            color:#ffffff;
            cursor: pointer;
            font-size: 14px;
        }
    </style>
</head>
<body>
    <div class="content">
        <img id="img" src=""/>
        <div>
            <span id="mes" style="float:left;"></span>
        </div>
    </div>
    <div class="but-div">
        <div onclick="closeWin()">确定</div>
    </div>
</body>
<script>
    mini.parse();

    function SetData(data) {
        var type = data.type;
        var url = "${ctx}/trunk/js/mes/img/ts2.png";
        if (type == "mes") {
            url = "${ctx}/trunk/js/mes/img/ts2.png";
        } else if (type == "success") {
            url = "${ctx}/trunk/js/mes/img/ts3.png";
        } else if (type == "error") {
            url = "${ctx}/trunk/js/mes/img/ts4.png";
        } else if (type == "info") {
            url = "${ctx}/trunk/js/mes/img/ts5.png";
        }
        document.getElementById("img").src=url;
        document.getElementById("mes").innerHTML = data.mes;
    }
    function closeWin() {
        if (window.CloseOwnerWindow) {
            return window.CloseOwnerWindow("ok");
        }
        else {
            window.close();
        }
    }

    setTimeout(function() {
        closeWin();
    },3000)
</script>
</html>
